I have a spreadsheet that uses a pivot table and refreshes on load and sets the date filter to yesterday. I would like to have it set the date filter on Monday to Friday and Tuesday - Friday set to Yesterday. I have created a cell formula that will give me the date I want to filter on. =IF(WEEKDAY(TODAY())=2, TODAY()-3, TODAY()-1) how do I get the pivot table to use the cell value as the date filter. I would rather not use VBA but not apposed to it. any help is greatly appreciated.
Details: ActiveSheet.PivotTables("PivotTable3").PivotFields("Start Time")
Sheet / Cell: "=Summary!G1